package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.Topic;

public interface TopicMapper {

	List<Topic> findList(@Param("pageStat")String offset,@Param("pageStop")String limit,@Param("topicType") String topicType);

	int findCount(@Param("topicType") String topicType);

	int saveTopic(@Param("entity")Topic entity);

	int deleteTopic(@Param("id")int id);

	Topic findTopicById(@Param("id")int id);

	int topicDeatilSave(@Param("entity")Topic entity);

}
